<template>
  <moon-button @click="onClick">按钮</moon-button>
</template>

<script>
import MoonButton from '../lib/MoonButton.vue'
export default {
  components: {
    MoonButton
  },
  data() {
    return {
      sourceCodeTitle: '基础用法',
      sourceCode:
        `<template>
  <moon-button @click="onClick">按钮</moon-button>
</template>

<script>
import MoonButton from '../lib/MoonButton.vue'
export default {
  components: {
    MoonButton
  },
  data() {
    return {
      
    }
  },
  methods: {
    onClick() {
      console.log('hi')
    }
  }
}
</` + 'script>'
    }
  },
  methods: {
    onClick() {
      console.log('hi')
    }
  }
}
</script>
